package com.vini.core.si;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vini.core.dao.CompanyDao;
import com.vini.core.ec.Company;

@Service
public class CompanyServiceImpl implements CompanyService{
	
	@Autowired
	private CompanyDao companyDao;

	@Override
	public Company save(Company company1) {
		return companyDao.save(company1);
	}

	@Override
	public List<Company> getAllCompanies() {
		return companyDao.getAllCompanies();
	}

}
